<?php
//Configuration options
error_reporting(4);

$GLOBALS['offline'] = 0;
$GLOBALS['offline_message'] = 'Site is under maintainance. Please try agian later.';
$GLOBALS['error_message'] = 'An error occurred. please report to Admin';

$GLOBALS['yahoo_hostname'] = 'http://search.yahooapis.com';
$GLOBALS['yahoo_service'] = '/SiteExplorerService/V1/';
$GLOBALS['yahoo_method'] = 'inlinkData?';
$GLOBALS['yahoo_appid'] = 'itscoolteja_912';
$GLOBALS['yahoo_live'] = 'http://siteexplorer.search.yahoo.com/search?bwm=i&bwms=p&bwmf=u&fr=FP-tab-web-t500&fr2=seo-rd-se&p=http://';
$GLOBALS['yahoo_regexp'] = "/Inlinks\s*\(([0-9]+)\)/i";

$GLOBALS['google_hostname'] = 'http://www.google.com/search?num=1&q=link:';
$GLOBALS['google_live'] = 'http://www.google.com/search?num=1&q=link:';
$GLOBALS['google_regexp'] = "/Results\s+([0-9]+)\s+\-\s+([0-9]+)\s+of\s+about\s+([0-9\,]+)\s+linking\s+to/i";

$GLOBALS['msn_hostname'] = 'http://search.msn.com/results.aspx?q=link%3A';
$GLOBALS['msn_live'] = 'http://search.msn.com/results.aspx?q=link%3A';
$GLOBALS['msn_regexp'] = "/Page\s+([0-9]+)\s+\of\s+([0-9\,]+)\s+results/i";



//Check configs
if ($GLOBALS['offline'] == 1) {
	echo $GLOBALS['offline_message'];
	die;
}

$allow_url_fopen = ini_get('allow_url_fopen');
if (!$allow_url_fopen) {
	ini_set('allow_url_fopen', 1);
}

$allow_url_fopen = ini_get('allow_url_fopen');

?>